public class Test {
    public int year;
    public int month;
    public int day;
    public Test(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public static void main(String[] args) {
        Test test = new Test(2021, 11, 31);
        System.out.println(test.year);
        System.out.println(test.month);
        System.out.println(test.day);
    }
}
